package com.itheima.myextends.继承下成员方法的访问特点_05;

public class Fu {
    public void smoke(){
        System.out.println("抽大前门~");
    }
}

class Zi extends Fu{

    public void smoke(){
        System.out.println("抽华子~");
    }

    public void method(){
        //调用smoke方法
        this.smoke();
        //调用父类中的smoke方法
        super.smoke();
    }
}
